﻿using System;

namespace DreamCube.DC_52Icon
{
    public partial class pageFooter : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["n"] == null)
            {
                BLL.AccessCount.IncrementTodayAccessCount();
                BLL.AccessCount.IncrementTotalAccessCount();
                Session["n"] = 1;
            }
        }

        public String TodayAccessCount
        {
            get
            {
                try
                {
                    return BLL.AccessCount.GetTodayAccessCount().ToString(); 
                }
                catch (Exception)
                {}
                return "0";
            }
        }

        public String TotalAccessCount
        {
            get
            {
                try
                {
                    return BLL.AccessCount.GetTotalAccessCount().ToString();
                }
                catch (Exception)
                { }
                return "0";
            }
        }
    }
}